const target = {
    onlyNumbersGoHere: 0,
};

const proxy = new Proxy(target, {
    set(target, property, value) {
        if (typeof value !== 'number') {
            return false;   // 表示设置失败
        } else {
            Reflect.set(...arguments);
        };
    },
});


